"""Add product details and images tables

Revision ID: 9b684b4bacb8
Revises: 998f58874cd6
Create Date: 2025-10-05 12:08:30.567843

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '9b684b4bacb8'
down_revision: Union[str, Sequence[str], None] = '998f58874cd6'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table_comment(
        'product_categories',
        existing_comment='商品分类表',
        schema=None
    )
    op.drop_table_comment(
        'products',
        existing_comment='商品表',
        schema=None
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table_comment(
        'products',
        '商品表',
        existing_comment=None,
        schema=None
    )
    op.create_table_comment(
        'product_categories',
        '商品分类表',
        existing_comment=None,
        schema=None
    )
    # ### end Alembic commands ###
